package com.light.springboot.service;

import com.light.springboot.base.jpa.repostitory.support.BaseRepository;
import com.light.springboot.base.jpa.service.support.GenericServiceImpl;
import com.light.springboot.model.Person;
import com.light.springboot.repository.PersonRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by win7 on 2018/6/14.
 */
@Service
public class PersonServiceImpl extends GenericServiceImpl<Person,Long> implements PersonService{

    @Resource
    private PersonRepository personRepository;

    public PersonServiceImpl() {
        super(Person.class);
    }

    @Override
    protected BaseRepository<Person, Long> getRepository() {
        return personRepository;
    }
}
